package org.jsets.fastboot.flowable.model.vo;

import java.io.Serializable;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString(callSuper = true)
@ApiModel(description = "流程模型")
public class ModelVO implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键")
	private String id;
	@ApiModelProperty(value = "KEY")
	private String key;
	@ApiModelProperty(value = "名称")
	private String name;
	@ApiModelProperty(value = "版本")
	private Integer version;
	@ApiModelProperty(value = "创建时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	@ApiModelProperty(value = "修改时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastUpdateTime;
	@ApiModelProperty(value = "部署主键")
	private String deploymentId;
	@ApiModelProperty(value = "编辑器资源主键")
	private String editorSourceValueId;
	@ApiModelProperty(value = "信息")
	private String metaInfo;
	@ApiModelProperty(value = "持久化状态")
	private String persistentState;
	@ApiModelProperty(value = "部署时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date deploymentTime;
	//@ApiModelProperty(value = "流程图Base64编码")
	//private String modelImageBase64;
}